<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link rel="stylesheet" type="text/css" href="assets/css/index.css">
    <link rel="stylesheet" type="text/css" href="assets/vendors/iconfont/iconfont.css">
    <link rel="stylesheet" type="text/css" href="assets/css/common.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.js"></script>
    <script>
        (function () {
            const tokener=window.sessionStorage.getItem("token");
            if(!tokener){
                window.location.href="../public/login.html";
            }
        })();

    // (document).ready(function () {
        //     const tokener=window.sessionStorage.getItem("token");
        //     if(!tokener){
        //         window.location.href="../public/login.html"
        //     }
        // })
    </script>
</head>
<body>
<div class="box">
    <div class="header"></div>
    <div class="content">
        <div class="contentBox">
            <div class="box1"></div>
            <div class="box2"></div>
        </div>
        <div class="newBar">
            <span class="newsBarLeft">新闻动态</span>
            <span class="newsBarRight">更多>></span>
        </div>
        <div class="news"></div>
        <div class="newBar">
            <span class="newsBarLeft">权威支持</span>
            <span class="newsBarRight">更多>></span>
        </div>
        <div class="supportList"></div>
    </div>
</div>
<div class="footer">
    <div class="footerBox">
        <div class="footerBoxItem"></div>
        <div class="footerBoxItem"></div>
    </div>
</div>
</div>

<div id="app"></div>
<script>

    // class divCreate {
    //     constructor(data,el) {
    //         this.$data = data;
    //         this.$el = el;
    //         this.creatDivElement()
    //         this.creatSpanElement()
    //     }
    //     creatDivElement() {
    //         let h = $(`<div>${this.$data.data.list[0]}</div>`)
    //         $(`${this.$el}`).append(h)
    //     }
    //     creatSpanElement() {
    //         let h = $(`<span>${this.$data.data.list[0]}</span>`)
    //         $(`${this.$el}`).append(h)
    //     }
    //
    // }


                // new divCreate(data,'#app')
                // new divCreate(data,'#app')
                // new divCreate(data,'#app')
                // new divCreate(data,'#app')
                // new divCreate(data,'#app')
                // new divCreate(data,'#app')


                // class jQuery {
                //     constructor(el) {
                //         this.$el = el;
                //         this.cl  = '';
                //         this.isObject();
                //     }
                //     isObject() {
                //         if(typeof this.$el === 'object'){
                //             return
                //         }
                //         console.log(2)
                //         this.cl = document.querySelectorAll(this.$el)
                //         console.log(this.cl)
                //     }
                // }
                // new jQuery('#app')



</script>
<script src="assets/js/common.js"></script>
<script src="assets/js/index.js"></script>
<script>
</script>
</body>
</html>
